package com.jec.module.sysconfig.service.configor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

import com.jec.module.sysconfig.dao.TerminalKeyConfigRepository;
import com.jec.module.sysconfig.entity.TerminalKeyConfig;
import com.jec.module.sysconfig.service.convertor.Convertor;
import com.jec.module.sysconfig.service.convertor.TerminalKeyConvertor;

@Component
public class TerminalKeyConfigor extends BaseConfigor<TerminalKeyConfig> {
	
	@Autowired
	private TerminalKeyConfigRepository terminalKeyConfigRepository;
	
	@Autowired 
	private TerminalKeyConvertor terminalKeyConvertor;
	
	public TerminalKeyConfigor() {
		logKey = "终端按键";
	}
	
	@Override
	protected JpaRepository<TerminalKeyConfig, Integer> getRepository() {
		return terminalKeyConfigRepository;
	}
	
	@Override
	protected Convertor<TerminalKeyConfig> getConvertor() {
		return terminalKeyConvertor;
	}

	@Override
	public boolean hasConfigOnNetunit(int netunit) {
		return false;
	}

}
